package com.itheima.Base;

public class Trad2 {
    public static void main(String[] args) {
        System.out.println(17<<5);//544
        System.out.println(9>>2); //2
        System.out.println(6 ^ 8^ 6  );
        int a = 10;
        int b = 20; //如何交换两个变量的值?

        /*int c = a;
        a = b ;
        b = c;*/
        System.out.println("+++++++++");
        System.out.println( a );
        System.out.println( b );
        a = a ^ b;// a = 10 ^ 20
        b = a ^ b; // b = 10 ^ 20 ^20
        a = a ^ b; // 10 ^ 20 ^ 10



    }
}
